package com.atguigu.b_localdatetime;

import java.time.LocalDateTime;

public class Demo {
    public static void main(String[] args) {
        //现在时间
        LocalDateTime now = LocalDateTime.now();
        System.out.println("now = " + now.toString());


        //指定时间
        LocalDateTime of = LocalDateTime.of(2008, 8, 8, 20, 8, 8);
        //date.toString() + 'T' + time.toString();
        System.out.println("of = " + of);


    }
}
